<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
    {jquery/}
    {jsconst/}
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/category.css" />
	<link href="__ROOT__/tabui/css/ui-lightness/jquery-ui-1.9.2.custom.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/config.css" />
	<script src="__ROOT__/tabui/js/jquery-ui-1.9.2.custom.js"></script>
    <script src="__PUBLIC__/js/config.js"></script>
    <!-- {js file="__PUBLIC__/js/config.js"/} -->
	<script>
    $(function() {
		$( "#tabs" ).tabs();
		// Hover states on the static widgets
		$( "#dialog-link, #icons li" ).hover(
			function() {
				$( this ).addClass( "ui-state-hover" );
			},
			function() {
				$( this ).removeClass( "ui-state-hover" );
			}
		);
	});
    </script>
</head>
<body>
    <!-- {$tpl_styles|p}
    {$tpl_config|p} -->
    <!-- {$kg|p} -->
	<div id="tabs">
        <ul>
            <li>
                <a href="#tabs-1">基本配置</a>
            </li>
        </ul>
        <form action="__APP__/baseconfig/configedit" method="post">
            <input type="hidden" name="{$tpl_config.name}" value="{$tpl_config.value}"/>
    		<div id="tabs-1">
    			<table class="table2">
                    {list from='$result' name="r"}
                        <tr>
                            <th>{$r.title}</th>
                            <td>
                                <input type="text" class="w200" name="{$r.name}" value="{$r.value}"/> <span class="desc1">{$r.message}</span>
                            </td>
                        </tr>
                    {/list}
                        <tr>
                            <th>网站开关</th>
                            <td>
                                <span>开</span>
                                <input type="radio" name="flag" value=1 {if value="$kg[0]['value']==1"} checked {/if}/>
                                <span>关</span>
                                <input type="radio" name="flag" value=0 {if value="$kg[0]['value']==0"} checked {/if}/> 
                            </td> 
                        </tr>
                </table>
                <div class="tpl_style">
                    <h3>模板风格</h3>
                    <ul>
                        {list from="$tpl_styles" name="t"}
                            <li tplstyle="{$t.style}" {if value="$t.style!=$tpl_config.value"} class='select1'{/if}>
                                <a href="javascript:void(0);">
                                    <img src="{$t.short|default:$defaultjpg}"/>
                                </a>
                                <p>
                                    <a href="javascript:void(0);">{$t.name|default:"未命名"}
                                    </a>
                                </p>
                                <span>{$t.author|default:"EasyCMS"}</span>
                                <span>{$t.email|default:"EasyCMS@gmail.com"}</span>
                            </li>
                        {/list}
                    </ul>
                </div>
    		</div>
            <div>
                <input type="submit" class="bt1" value="修改配置"/>
            </div>
        </form>
	</div>
</body>
</html>